<template>
  <a-modal
    :title="title"
    :width="width"
    :visible="visible"
    :confirmLoading="confirmLoading"
    :footer="null"
    @cancel="handleCancel"
    cancelText="关闭">
    <a-spin :spinning="confirmLoading">
      <a-form :form="form">

        <a-form :form="form">
          <a-row>
            <a-col :span="12">
              <a-form-item label="生产订单工厂" :labelCol="labelCol" :wrapperCol="wrapperCol">
                <j-editable> {{record.factory}}</j-editable>
              </a-form-item>
            </a-col>
            <a-col :span="12">
              <a-form-item label="生产订单物料编码" :labelCol="labelCol" :wrapperCol="wrapperCol">
                <j-editable> {{record.materialNo}}</j-editable>
              </a-form-item>
            </a-col>
            <a-col :span="12">
              <a-form-item label="生产订单物料描述" :labelCol="labelCol" :wrapperCol="wrapperCol">
                <j-editable> {{record.materialDesc}}</j-editable>
              </a-form-item>
            </a-col>
            <a-col :span="12">
              <a-form-item label="工艺路线编码" :labelCol="labelCol" :wrapperCol="wrapperCol">
                <j-editable> {{record.processrouteNo}}</j-editable>
              </a-form-item>
            </a-col>
            <a-col :span="12">
              <a-form-item label="工艺路线描述" :labelCol="labelCol" :wrapperCol="wrapperCol">
                <j-editable> {{record.processrouteDesc}}</j-editable>
              </a-form-item>
            </a-col>
            <a-col :span="12">
              <a-form-item label="生产订单号" :labelCol="labelCol" :wrapperCol="wrapperCol">
                <j-editable> {{record.processDesc}}</j-editable>
              </a-form-item>
            </a-col>
            <a-col :span="12">
              <a-form-item label="供应商编号" :labelCol="labelCol" :wrapperCol="wrapperCol">
                <j-editable> {{record.supplierCode}}</j-editable>
              </a-form-item>
            </a-col>
            <a-col :span="12">
              <a-form-item label="工艺编号" :labelCol="labelCol" :wrapperCol="wrapperCol">
                <j-editable> {{record.processRouteNo}}</j-editable>
              </a-form-item>
            </a-col>
            <a-col :span="12">
              <a-form-item label="抓取状态" :labelCol="labelCol" :wrapperCol="wrapperCol">
                <j-editable> {{record.ioflag}}</j-editable>
              </a-form-item>
            </a-col>
            <a-col :span="12">
              <a-form-item label="抓取时间" :labelCol="labelCol" :wrapperCol="wrapperCol">
                <j-editable> {{record.updateTime}}</j-editable>
              </a-form-item>
            </a-col>

          </a-row>
        </a-form>
        <div style="text-align: center">
          <a-button type="primary" @click="handleCancel">关闭</a-button>
        </div>
        
      </a-form>
    </a-spin>
  </a-modal>
</template>

<script>

  import { httpAction } from '@/api/manage'
  import pick from 'lodash.pick'
  
  export default {
    name: "ZxjEip2cScgylxModal",
    components: { 
    },
    data () {
      return {
        title:"操作",
        width:1000,
        visible: false,
        model: {},
        labelCol: {
          xs: { span: 24 },
          sm: { span: 8 },
        },
        wrapperCol: {
          xs: { span: 24 },
          sm: { span: 16 },
        },

        confirmLoading: false,
        url: {
          add: "/zxjEip2cScgylx/zxjEip2cScgylx/add",
          edit: "/zxjEip2cScgylx/zxjEip2cScgylx/edit",
        }
     
      }
    },
    created () {
    },
    methods: {
      close () {
        this.$emit('close');
        this.visible = false;
      },

      handleCancel () {
        this.close()
      },
      addModal (record) {
        this.record=record;
        this.visible = true;
      }
    }
  }
</script>